﻿<%@ Register TagPrefix="SOW" TagName="Head" Src="Head.ascx"%>
<%@ Page language="c#" Codebehind="AddArticle.aspx.cs" AutoEventWireup="true" Inherits="search.AddArticle" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>泉源网 — 发帖</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="../springofwater.css" type="text/css" rel="stylesheet">
		<style>A { TEXT-DECORATION: none }
	A:hover { TEXT-TRANSFORM: uppercase; COLOR: red }
	.textinput1 { WIDTH: 537px }
	.textinput2 { WIDTH: 40px; TEXT-ALIGN: center }
	.textinput3 { WIDTH: 513px; HEIGHT: 140px }
	.listbox { FONT-SIZE: 14px; WIDTH: 256px; HEIGHT: 155px }
	.selectinput { FONT-SIZE: 14px; WIDTH: 280px }
	.button { WIDTH: 80px; HEIGHT: 24px }
		</style>
		<script language="javascript">
			function checkinput(){
				var obj=document.all("TextBox1");
				if(obj.value==''){
					alert("请输入标题！");
					obj.focus();
					return false;
				}
				
				if(!chk(document.all("TextBox_Chapter0"))){
					return false;
				}
				if(!chk(document.all("TextBox_Section0"))){
					return false;
				}
				if(!chk(document.all("TextBox_Chapter0_To"))){
					return false;
				}
				if(!chk(document.all("TextBox_Section0_To"))){
					return false;
				}
				
				obj=document.all("TextBox6");
				var obj1=document.all("TextBox_Url");
				if(obj.value=='' && obj1.value==''){
					alert("请输入文章内容或Url！");
					obj.focus();
					return false;
				}
				
				return true;
			}
			
			function chk(obj){
				if(obj.value==''){
					alert("请输入经文章节！");
					obj.focus();
					return false;
				}
				return true;
			}
			
			function check2(evt){
				var charCode=(evt.which) ? evt.which : event.keyCode;
				if(charCode > 31 && (charCode < 48 || charCode > 57)){
					return false;
				}
				document.all("TextBox_Chapter0_To").value = document.all("TextBox_Chapter0").value
				return true;
			}
			function check3(evt){
				var charCode=(evt.which) ? evt.which : event.keyCode;
				if(charCode > 31 && (charCode < 48 || charCode > 57)){
					return false;
				}
				document.all("TextBox_Section0_To").value = document.all("TextBox_Section0").value
				return true;
			}
			function check45(evt){
				var charCode=(evt.which) ? evt.which : event.keyCode;
				if(charCode > 31 && (charCode < 48 || charCode > 57)){
					return false;
				}
				return true;
			}
		</script>
	</HEAD>
	<body onload="document.all('TextBox1').focus();">
		<form id="Form1" method="post" runat="server">
			<SOW:HEAD id="Head1" runat="server"></SOW:HEAD>
			<TABLE id="Table2" cellSpacing="0" cellPadding="0" width="770" border="0" align="center">
				<TR>
					<TD width="100%" height="25" vAlign="middle" align="center" bgColor="#5d9dd1" style="FONT-SIZE:12px">&nbsp;
						<A href="SSearch.aspx"><FONT color="#ffffff">经文搜索</FONT></A><FONT color="#ffffff">&nbsp;|
						</FONT><A href="TSearch.aspx"><FONT color="#ffffff">主题搜索</FONT></A><FONT color="#ffffff">&nbsp;|
						</FONT><A href="KeySearch.aspx"><FONT color="#ffffff">关键字搜索</FONT></A><FONT color="#ffffff">&nbsp;|
						</FONT><FONT color="#ffffff" style="FONT-WEIGHT: bold; FONT-SIZE: 13px; COLOR: #ffff99">
							<b>发帖</b></FONT><asp:Literal ID="Literal_Admin" Runat="server"></asp:Literal>
					</TD>
				</TR>
				<tr>
					<td height="3" bgcolor="#ffffff"></td>
				</tr>
			</TABLE>
			<table cellSpacing="0" cellPadding="0" width="770" align="center" border="0">
				<tr>
					<td style="BORDER-RIGHT: #696969 1px solid; BORDER-TOP: #696969 1px solid; FONT-SIZE: 14px; BORDER-LEFT: #696969 1px solid; BORDER-BOTTOM: #696969 0px solid; BACKGROUND-COLOR: #dcdcdc"
						noWrap align="center" width="100">发表文章</td>
					<td style="BORDER-RIGHT: #dcdcdc 1px solid; BORDER-TOP: #dcdcdc 1px solid; FONT-SIZE: 14px; BORDER-BOTTOM: #696969 1px solid; BACKGROUND-COLOR: #f5f5f5"
						noWrap align="center" width="100" height="30"><A href="EditArticle.aspx">文章管理</A></td>
					<td style="FONT-SIZE: 14px; BORDER-BOTTOM: #696969 1px solid" width="570" align="center">&nbsp;<asp:label id="Label1" runat="server"></asp:label></td>
				</tr>
				<tr>
					<td style="BORDER-RIGHT: #696969 1px solid; BORDER-TOP: #696969 0px solid; BORDER-LEFT: #696969 1px solid; BORDER-BOTTOM: #696969 1px solid; BACKGROUND-COLOR: #dcdcdc"
						vAlign="top" align="center" colSpan="3" height="550" width="770">
						<table cellSpacing="0" cellPadding="0" width="770" align="center" border="0">
							<tr>
								<td style="FONT-WEIGHT: bold; FONT-SIZE: 18px" align="center" height="30">发帖
								</td>
							</tr>
							<tr>
								<td align="center" height="30">主题
									<asp:textbox id="TextBox1" runat="server" Height="22px" BorderWidth="1px" BorderColor="#004000"
										BorderStyle="Groove" Width="578px" CssClass="textinput1"></asp:textbox>&nbsp;&nbsp;&nbsp;</td>
							</tr>
							<tr>
								<td align="center" height="30" style="PADDING-RIGHT:10px; PADDING-LEFT:10px" width="770">
									<table border="0" cellpadding="0" cellspacing="0" width="750" align="center">
										<tr>
											<td width="60">&nbsp;</td>
											<td height="30" nowrap style="FONT-SIZE: 12pt">经文</td>
											<td width="50" nowrap style="FONT-SIZE: 12pt" align="center">章</td>
											<td width="30" nowrap style="FONT-SIZE: 12pt" align="center">&nbsp;</td>
											<td width="50" nowrap style="FONT-SIZE: 12pt" align="center">节</td>
											<td width="50" nowrap style="FONT-SIZE: 12pt" align="center">&nbsp;</td>
											<td width="50" nowrap style="FONT-SIZE: 12pt" align="center">章</td>
											<td width="30" nowrap style="FONT-SIZE: 12pt" align="center">&nbsp;</td>
											<td width="50" nowrap style="FONT-SIZE: 12pt" align="center">节</td>
											<td width="40">&nbsp;</td>
										</tr>
										<tr>
											<td align="right">&nbsp;</td>
											<td height="30" nowrap><asp:dropdownlist id="DropDownList1" runat="server" CssClass="selectinput" Font-Size="14px" Height="30px"
													Width="280px"></asp:dropdownlist></td>
											<td width="50" align="center">
												<asp:textbox id="TextBox_Chapter0" runat="server" CssClass="textinput2" Height="22px" Width="40px"
													BorderWidth="1px" BorderColor="#004000" BorderStyle="Groove">1</asp:textbox></td>
											<td width="50" align="center">∶</td>
											<td width="50" align="center"><asp:textbox id="TextBox_Section0" runat="server" CssClass="textinput2" Height="22px" Width="40px"
													BorderWidth="1px" BorderColor="#004000" BorderStyle="Groove">1</asp:textbox></td>
											<td width="50" align="center">—</td>
											<td width="50" align="center">
												<asp:textbox id="TextBox_Chapter0_To" runat="server" CssClass="textinput2" Height="22px" Width="40px"
													BorderWidth="1px" BorderColor="#004000" BorderStyle="Groove">1</asp:textbox></td>
											<td width="50" align="center">∶</td>
											<td width="50" align="center"><asp:textbox id="TextBox_Section0_To" runat="server" CssClass="textinput2" Height="22px" Width="40px"
													BorderWidth="1px" BorderColor="#004000" BorderStyle="Groove">31</asp:textbox></td>
											<td>
												<asp:button id="Button1" runat="server" Height="24px" Width="50px" CssClass="button" Text="添加↓" OnClick="Button1_Click1"></asp:button></td>
										</tr>
										<tr>
											<td height="50"></td>
											<td colspan="8">
												<asp:listbox id="ListBox_Title" runat="server" Height="155px" Width="616px" CssClass="listbox"
													Font-Size="14px"></asp:listbox>
											</td>
											<td>
												<asp:button id="Button2" runat="server" Height="24px" Width="50px" CssClass="button" Text="删除X" OnClick="Button2_Click1"></asp:button></td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td align="center" height="30">
									<table cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
										<tr>
											<td align="center" width="50%" height="30">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
												选择主题&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
											<td align="left" width="50%" height="30">选择子主题</td>
										</tr>
										<tr>
											<td align="right" height="80"><asp:listbox id="ListBox1" runat="server" Height="155px" Width="256px" Font-Size="14px" AutoPostBack="True"
													CssClass="listbox" OnSelectedIndexChanged="ListBox1_SelectedIndexChanged1"></asp:listbox></td>
											<td><asp:listbox id="ListBox2" runat="server" Height="155px" Width="256px" Font-Size="14px" CssClass="listbox"></asp:listbox></td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td align="center" height="30">
									<table cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
										<tr>
											<td align="center" height="30">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 文章
												<asp:textbox id="TextBox_Url" runat="server" CssClass="textinput1" Width="509px" BorderStyle="Groove"
													BorderColor="#004000" BorderWidth="1px" Height="22px"></asp:textbox>URL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td align="center" height="80" vAlign="top"><FONT face="宋体">&nbsp;&nbsp; </FONT>
												<asp:textbox id="TextBox6" runat="server" Height="140px" BorderWidth="1px" BorderColor="#004000"
													BorderStyle="Groove" Width="514px" TextMode="MultiLine" CssClass="textinput3"></asp:textbox><FONT face="宋体">Text</FONT></td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td align="center" height="40"><asp:button id="Button_Submit" runat="server" CssClass="button" Height="24px" Width="80px" Text="发  表" OnClick="Button_Submit_Click1"></asp:button>&nbsp;&nbsp;&nbsp;
									<INPUT style="WIDTH: 80px; HEIGHT: 24px" onclick="location.href='AddArticle.aspx';" type="button"
										value="重  来" id="Button3"></td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
			<asp:literal id="Literal_script" Runat="server" EnableViewState="False"></asp:literal></form>
	</body>
</HTML>
